Skip to content

Fix #13767 (SymbolDatabase: refactorings. Remove always false condition. Make loop more robust)#7457

Merged
danmar merged 1 commit intocppcheck-opensource:mainfrom
cppchecksolutions:refactor-findsimplematch
May 12, 2025
Merged

Fix #13767 (SymbolDatabase: refactorings. Remove always false condition. Make loop more robust)#7457
danmar merged 1 commit intocppcheck-opensource:mainfrom
cppchecksolutions:refactor-findsimplematch

Conversation

@danmar
Copy link
Copy Markdown
Collaborator

@danmar danmar commented Apr 12, 2025

No description provided.

@danmar danmar force-pushed the refactor-findsimplematch branch from 5c3dc64 to bbc72cb Compare April 12, 2025 06:59
Copy link
Copy Markdown
Collaborator Author

@danmar danmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot provide a testcase. Just wanted to remove a redundant condition and make code more robust in case there is a edge case I can't reproduce.

Comment thread lib/symboldatabase.cpp
Comment thread lib/symboldatabase.cpp
@danmar danmar changed the title SymbolDatabase: refactorings. Remove always false condition. Make loop more robust Fix #13767 (SymbolDatabase: refactorings. Remove always false condition. Make loop more robust) Apr 12, 2025
@danmar danmar requested a review from Copilot April 12, 2025 09:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

lib/symboldatabase.cpp:1803

  • The removed condition appears redundant given the preceding match check; please confirm that this change does not inadvertently skip cases that might require handling.
if (!Token::Match(dimension.tok->previous(), "[<,]"))

Comment thread lib/symboldatabase.cpp
@danmar danmar merged commit 160ab25 into cppcheck-opensource:main May 12, 2025
53 checks passed
@danmar danmar deleted the refactor-findsimplematch branch May 12, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants